# 4-8 编写程序删除列表中的重复值
def delete(list):
    new_list = []
    encountered = []
    for i in list:
        if i not in encountered:
            new_list.append(i)
            encountered.append(i)
    return new_list
# 示例演示
list_1 = [1,2,2,3,4,4,4,5,6,7,7]
new_list = delete(list_1)
print(f"列表删除重复元素后结果是：{new_list}")